# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-ioflo
_pkgname=ioflo
pkgver=2.0.0
pkgrel=2
pkgdesc="Automated Reasoning Engine and Flow Based Programming Framework"
url="https://github.com/ioflo/ioflo"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools-git"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-ioflo" # Backwards compatibility
provides="py-ioflo=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	# keep ioflo and remove ioflo3
	rm -f "$pkgdir"/usr/bin/ioflo3
}

sha512sums="4079928c564bb983457939ca477a92cfab220816addf2c6fec70b8e4c80cd41ac3dac86507e2ddfba2e47d63b4e752cfd20f6a81f6e86611ea0a9c2da48631de  ioflo-2.0.0.tar.gz"
